﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Web.Http;

namespace Jizsoft.JFrame.Modeling.Web.Api
{
    public class UserController : ApiController
    {
        [HttpGet]
        public SingleResult<GetProfileResult> Profile()
        {
            GetProfileResult actResult = new GetProfileResult();
            actResult.Id = User.Identity.Name;
            actResult.Name = User.Identity.Name;
            return new SingleResult<GetProfileResult>(actResult);
        }
    }

    public class GetProfileResult
    {
        public string Name;
        public string Id;
    }
}
